package com.ui.basic.command.administrative;

import java.util.List;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;

import com.common.basic.base.BaseCommand;
import com.common.basic.util.ComboValue;
import com.ui.basic.ibatis.model.admin.TblAExchangeRate;

public class CommandExchangeRate extends BaseCommand implements
		java.io.Serializable {

	private static final long serialVersionUID = 7232150239468640140L;

	private Long id;
	@NotNull
	private Long srcCurrId;
	@NotNull
	private Long destCurrId;
	@NotNull
	private Double rate;
	@NotNull
	private Double commission;
	private List<ComboValue> currList;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Double getRate() {
		return rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	public Double getCommission() {
		return commission;
	}

	public void setCommission(Double commission) {
		this.commission = commission;
	}

	public Long getDestCurrId() {
		return destCurrId;
	}

	public void setDestCurrId(Long destCurrId) {
		this.destCurrId = destCurrId;
	}

	public Long getSrcCurrId() {
		return srcCurrId;
	}

	public void setSrcCurrId(Long srcCurrId) {
		this.srcCurrId = srcCurrId;
	}

	public List<ComboValue> getCurrList() {
		return currList;
	}

	public void setCurrList(List<ComboValue> currList) {
		this.currList = currList;
	}

	public void setProperty(TblAExchangeRate entity){
		this.id = entity.getId();
		this.destCurrId = entity.getDestCurrId();
		this.srcCurrId = entity.getSrcCurrId();
		this.rate = entity.getRate();
		this.commission = entity.getCommission();
	}
}
